#
# Makefile for sys module
#

obj-m += os_aware.o

os_aware-y := main.o data_aware.o syms.o hook_tk5.o hook.o kretprobe_prehook.o kprobe_prehook.o sysctl.o ftrace_hook.o func_pointer_table.o func_struct_table.o
ifeq (${version}, 6.6)
os_aware-y +=func_pointer_table_6_6.o
else
os_aware-y += func_pointer_table_5_4.o
endif

KERNELDIR=`pwd`/include
MODULEDIR=`pwd`

default:
	/usr/bin/make -C $(KERNELDIR)  M=$(MODULEDIR) modules
clean:
	/usr/bin/make -C $(KERNELDIR)  M=$(MODULEDIR) clean
